package com.fortune.rainshine.feign.service;

import com.fortune.rainshine.config.FeignConfig;
import com.fortune.rainshinecommon.base.MsgModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "rain-shine-service",configuration = FeignConfig.class)
@Controller
public interface CityFeign {
    @PostMapping("/city/getCbmCityList")
    @ResponseBody
    MsgModel getCbmCityList();

    @PostMapping("/city/getCityNameByCode")
    @ResponseBody
    String getCityNameByCode(@RequestBody String cityCode);

    @PostMapping("/city/getProvinceNameByCode")
    @ResponseBody
    String getProvinceNameByCode(@RequestBody String provinceCode);
}
